package demo2;

public class Test1 {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.powerOn();

        Mouse mouse = new Mouse();

        KeyBoard keyBoard = new KeyBoard();

        computer.useService(mouse);
        System.out.println("===================");
        computer.useService(keyBoard);

        computer.powerOff();
    }
}
